package com.scaffold.myproject.model.vo.item;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品表 VO
 * </p>
 *
 * @author LX
 * @since 2025-10-29
 */

@ApiModel(value = "ItemVO", description = "")
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ItemVO {

    @ApiModelProperty("主键ID")
    Long id;

    @ApiModelProperty("SKU名称")
    String name;

    @ApiModelProperty("价格（分）")
    Integer price;

    @ApiModelProperty("库存数量")
    Integer stock;

    @ApiModelProperty("商品图片")
    String image;

    @ApiModelProperty("类目名称")
    String category;

    @ApiModelProperty("品牌名称")
    String brand;

    @ApiModelProperty("规格")
    String spec;

    @ApiModelProperty("销量")
    Integer sold;

    @ApiModelProperty("评论数")
    Integer commentCount;

    @ApiModelProperty("是否是推广广告，true/false")
    Boolean isAD;

    @ApiModelProperty("商品状态 1-正常，2-下架，3-删除")
    Integer status;

    @ApiModelProperty("创建时间")
    LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    Long creater;

    @ApiModelProperty("修改人")
    Long updater;


}